import zipfile
import os.path

cwd = os.path.dirname(__file__)
if cwd != '':
    os.chdir(cwd)

zip = zipfile.ZipFile('hea3ven-cc-scripts.zip', 'w')

files = [('mine3.lua', 'programs/quarry-mine'),
         ('api/turtle_utils.lua', 'apis/turtle_utils')
        ]

zip.write('media\\pack.mcmeta', arcname='pack.mcmeta')
zip.write('media\\pack.png', arcname='pack.png')
for src_file, dst_file in files:
	full_dst_file = 'assets\\computercraft\\lua\\rom\\' + dst_file
	zip.write(src_file, arcname=full_dst_file)